<%--
  Created by IntelliJ IDEA.
  User: notyoukennk
  Date: 2022/12/13
  Time: 13:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*,com.spm.pojo.Student"
         pageEncoding="utf-8"%>
<%@ page import="com.spm.service.impl.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <title>单个学生成绩查询</title>

    <style type="text/css">
        input[type="text"]{
            height: auto;
            margin-bottom: 15px;
            padding: 3px 9px;
        }
    </style>
</head>

<body>

<form action="ShowOneGradeServlet" method="post">
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    课程号：<input type="text" name="cno" placeholder="课程号...">
    学号：<input type="text" name="searchId" placeholder="学生学号...">
    <i class="icon-search"></i>&nbsp;<button type="submit" class="btn btn-inverse"> 查找</button>
</form>
<table  class="table table-hover table-condensed">
    <tr>
        <td align="center">
            <strong>学号</strong>
        </td>
        <td align="center">
            <strong>姓名</strong>
        </td>
        <td align="center">
            <strong>班级</strong>
        </td>
        <td align="center">
            <strong>课程成绩</strong>
        </td>

    </tr>
        <tr>
            <td>
                <c:out value="${gradeOfOne.sid}" />
            </td>
            <td>
                <c:out value="${gradeOfOne.sName}" />
            </td>
            <td>
                <c:out value="${gradeOfOne.cClass}" />
            </td>
            <td>
                <c:out value="${gradeOfOne.grade.score}" />
            </td>
        </tr>
</table>


</body>
</html>